<html>
<head>
<title>SimpleWebSocketServer</title>
<script type="text/javascript" src="WebSocketTest.js"></script>
<script type="text/javascript" src="WebSocketTest2.js"></script>
</head>
<body bgcolor="#FFFFFF">
<a href="javascript:WebSocketTest()">Does my browser support WebSockets?</a><br/>
<br/>
<a href="javascript:WebSocketTest2()">Open WebSocket and tell me what time it is.</a>


<br/>
<a href="javascript:WebSocketTest2()">Open WebSocket and tell me what time it is.</a>
</body>

<script>
    
    
    
    var ws = new WebSocket("ws://192.168.1.107:59636");
    ws.onopen = function()
    {
        // Web Socket is connected
        alert("websocket is open");
        
        // You can send data now
        ws.send("Hey man, you got the time?");
    };
ws.onmessage = function(evt) { alert("received: " + evt.data); };
ws.onclose = function() { alert("websocket is closed"); };
    
    
    </script>

</html>
